package com.juyu.miliao.api.controller;

import com.juyu.miliao.api.domain.CommentNotice;
import com.juyu.miliao.api.service.CommentNoticeService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 社区置顶公告控制层
 * @Auther: 卜加超
 * @Date: 2019/4/24 17:40
 * @Description:
 */
@RestController
@RequestMapping("/commentNotice")
public class CommentNoticeController {
    @Resource
    private CommentNoticeService commentNoticeService;
    @GetMapping("/list")
    public List<CommentNotice> getCommentNoticeList(){
        return commentNoticeService.getCommentNoticeList();
    }
}
